import java.util.Arrays;
import java.util.HashMap;
import java.util.Scanner;

public class NumberFour {
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        String str=scanner.nextLine();
        String[] chaxun = str.split("");
        System.out.println(Arrays.toString(chaxun));

        HashMap<String,Integer> hashMap=new HashMap<>();

        for (int i = 0; i < chaxun.length; i++) {
            if (chaxun[i].equals(" ")){
                chaxun[i]=null;
            }
            if (hashMap.containsKey(chaxun[i])){
                int v=hashMap.get(chaxun[i]);
                v++;
                hashMap.put(chaxun[i],v);
            }else{
                hashMap.put(chaxun[i],1);
            }


        }
        hashMap.forEach((k,v)-> System.out.println(k+"="+v));
    }
}
